#ifndef _STAR_H_
#define _STAR_H_

#include <list>
#include <glm/glm.hpp>
#include "sdl_surface.h"

class Star {
public:
	typedef std::list<Star> List;
	typedef List::iterator Iter;
	typedef List::const_iterator cIter;

	Star();

	void randomizePos();
	void draw(sdl::Surface* s);
	void move(float velocity);

private:
	// Position of the star
	glm::vec3 _pos;
	// Motion blur effect
	std::list<float> _zettas;
	// Far away color (when z = 1)
	static glm::vec3 farAwayColor;
	// Near screen color (when z = 0)
	static glm::vec3 nearColor;
};

#endif // _STAR_H_
